@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/modular/shuheng/deal/deal.js?v=5"]}){
<style>
    .layui-elem-quote{
        background-color: #f7fb0b52;
        color: red;
    }
</style>
<div class="layui-body-header">
    <span class="layui-body-header-title">任务处理</span>
</div>
<blockquote class="layui-elem-quote layui-quote-nm">表格黄色代表当月需要完成的任务，红色代表即将超期。超期未完成的任务无法获得基础分 </blockquote>
<div class="layui-fluid">
    <div class="layui-row">
        <div class="layui-col-sm12 layui-col-md3 layui-col-lg2">
            <div class="layui-card">
                <div class="layui-card-body mini-bar">
                    <div class="ztree" id="jobTree"></div>
                </div>
            </div>
        </div>
        <div class="layui-col-sm12 layui-col-md9 layui-col-lg10">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <select name="year" id="year" lay-filter="year">
                                    @for(item in yearList){
                                    <option value="${item}">${item}年</option>
                                    @}
                                </select>
                            </div>
                            <div class="layui-inline">
                                <input id="dataName" class="layui-input" type="text" placeholder="资料名称"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                            </div>
                            <div class="layui-inline">
                                <button id="btnImport" class="layui-btn layui-btn-normal icon-btn"><i class="layui-icon"></i>任务导入</button>
                            </div>
                            <div class="layui-inline">
                                <button id="btnExport" class="layui-btn layui-btn-warm icon-btn"><i class="layui-icon">&#xe601;</i>任务上报导出</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="dataTable" lay-filter="dataTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/deal/upload")){
    {{#  if(d.hasUpload=='否'){ }}
    <a class="layui-btn layui-btn-xs" lay-event="upload">上传</a>
    {{#  } else { }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="upload">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    {{#  } }}
    @}
</script>
<script type="text/html" id="viewFileTpl">
    <a style="color:#1E9FFF; cursor: pointer;" lay-event="viewFile">{{d.file_name}}</a>
</script>
@}